package com.lagou.task09;

public class Rect extends Shape {
    private int len;
    private int wid;
    public Rect() {

    }
    public Rect(int x,int y,int len, int wid) {
        super(x,y);
        setLen(len);
        setWid(wid);
    }

    public int getLen() {
        return len;
    }

    public int getWid() {
        return wid;
    }

    public void setLen(int len) {
        this.len = len;
    }

    public void setWid(int wid) {
        this.wid = wid;
    }

    @Override
    public void show() {
        super.show();
        System.out.println("len = " + getLen() + "  wid = " + getWid());
    }

    public static void test(){
        System.out.println("子类的静态方法");
    }
}

